package org.star;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.ribbon.RibbonClient;
import org.springframework.cloud.netflix.ribbon.RibbonClients;
import org.star.config.MyRibbonConfig10000;

/**
 * @Author : 一叶浮萍归大海
 * @Date: 2024/6/11 17:12
 * @Description: 演示SpringCloud Alibaba中如何使用Ribbon
 * 如何测试：http://localhost:10000/order/placingOrder
 */
@RibbonClients(value = {
        @RibbonClient(name = "stockService",configuration = MyRibbonConfig10000.class)
})
@SpringBootApplication
public class OrderServiceApplication10000 {

    public static void main(String[] args) {
        SpringApplication.run(OrderServiceApplication10000.class, args);
    }

}
